<?php

use yii\helpers\Html;
use kartik\form\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\modules\bind\models\BankGuaranteeCompanyBind */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="bank-guarantee-company-bind-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'bank_id')->widget(\kartik\widgets\Select2::className(), ['data'=>\yii\helpers\ArrayHelper::map(\common\models\Bank::find()->asArray()->all(), 'id', 'name')])->label('银行') ?>

    <?= $form->field($model, 'guarantee_company_id')->widget(\kartik\widgets\Select2::className(), ['data'=>\yii\helpers\ArrayHelper::map(\common\models\GuaranteeCompany::find()->asArray()->all(), 'id', 'name')])->label('担保公司') ?>

    <?= $form->field($model, 'apigw_appid')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'apigw_format')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'apigw_signtype')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'apigw_version')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'company_private_key')->textarea() ?>

    <?= $form->field($model, 'bank_public_key')->textarea() ?>

    <?= $form->field($model, 'assurerno')->textInput(['maxlength' => true]) ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
